﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="managelink.aspx.cs" Inherits="admin_managelink" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
       <link href="images/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="width:100%">
            <tr>
                <td colspan="3">
                    <asp:GridView ID="GridView1" runat="server" Width="100%" EmptyDataText="暂无友情链接数据" AutoGenerateColumns="False" DataKeyNames="id" OnRowDeleting="GridView1_RowDeleting">
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="编号" />
                            <asp:BoundField DataField="linkname" HeaderText="链接名称" />
                            <asp:BoundField DataField="type" HeaderText="链接类型" />
                            <asp:BoundField DataField="pic" HeaderText="链接图片地址" />
                            <asp:BoundField DataField="url" HeaderText="链接地址" />
                            <asp:CommandField
                                HeaderText="操作" ShowDeleteButton="True" />
                        </Columns>
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    添加友情链接</td>
            </tr>
            <tr>
                <td>
                    友情链接名称</td>
                <td colspan="2">
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                    &nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    链接类型</td>
                <td colspan="2">
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True">重点链接</asp:ListItem>
                        <asp:ListItem>中央部门网站链接</asp:ListItem>
                        <asp:ListItem>各省市网站链接</asp:ListItem>
                        <asp:ListItem>其它友情链接</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td>
                    链接图片</td>
                <td colspan="2">
                    <input id="File1" runat="server" type="file" />&nbsp;<asp:Button ID="Button2" runat="server"
                        Text="上传" OnClick="Button2_Click" /></td>
            </tr>
            <tr>
                <td>
                    图片预览</td>
                <td colspan="2">
                    <asp:Image ID="Image1" runat="server" /></td>
            </tr>
            <tr>
                <td>
                    链接地址</td>
                <td colspan="2">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                    &nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td align="center" colspan="3" style="height: 26px">
                    <asp:Button ID="Button1" runat="server" Text="增加" Width="47px" OnClick="Button1_Click" />
                    <input id="Reset1" style="width: 51px" type="reset" value="重置" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
